<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/8/15
  Time: 19:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>My JSP 'list.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->

</head>

<body>
<body>
<a href="/ssm_test01/students/skipScoreAdd">添加分数</a>
<table border="1" width="80%">
    <caption>分数列表</caption>
    <thead>
    <tr>
        <th>编号</th>
        <th>学员姓名</th>
        <th>负责人</th>
        <th>科目</th>
        <th>成绩</th>
        <th>日期</th>

    </tr>
    </thead>
    <tbody>
    <c:forEach var="score" items="${list }">
        <tr>
            <td>${score.scoreId}</td>
            <td>${score.scoreStuName }</td>
            <td>${score.scorePrincipal }</td>
            <td>${score.scoreSubj }</td>
            <td>${score.scoreGrade }</td>
            <td>${score.scoreDate }</td>

            <td><a href="/ssm_test01/students/${score.scoreId}/scoreUpdate">修改</a> | <a href="/ssm_test01/students/${score.scoreId}/scoreDel" onclick="return confirm('是否删除?')">删除</a></td>
        </tr>
    </c:forEach>

    </tbody>
</table>

</body>
</body>
</html>
